import java.util.concurrent.TimeUnit

import spock.lang.Specification

class xxx extends Specification {
	
	def "mock test no metaClass.whenBlockTime property "()
	{
		given: "123"
		
		when:
			println("when block")
			TimeUnit.SECONDS.sleep(1)
		
		then: "测试方法"
			z == x + y

		where: "校验结果"
			x | y || z
			1 | 0 || 1
			2 | 1 || 3
	}
}
